package br.uninove.preaula.graf;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.Toolkit;
import javax.swing.ImageIcon;

public class TelaInicial {

	private JFrame frmCalcstatc;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaInicial window = new TelaInicial();
					window.frmCalcstatc.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public TelaInicial() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmCalcstatc = new JFrame();
		frmCalcstatc.setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\aruan\\Downloads\\imagens java\\seo1.png"));
		frmCalcstatc.setTitle("CalcStatc");
		frmCalcstatc.setBounds(100, 100, 900, 600);
		//frmCalcstatc.setExtendedState(JFrame.MAXIMIZED_BOTH); 
		frmCalcstatc.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmCalcstatc.getContentPane().setLayout(null);
		
		JMenuBar menuBar = new JMenuBar();
		frmCalcstatc.setJMenuBar(menuBar);
		
		JMenu mnArquivo = new JMenu("Arquivo");
		menuBar.add(mnArquivo);
		
		JMenu mnNovo = new JMenu("Novo");
		mnNovo.setIcon(new ImageIcon("C:\\Users\\aruan\\Downloads\\imagens java\\document6.png"));
		mnArquivo.add(mnNovo);
		
		JMenuItem mntmDadosDePesquisa = new JMenuItem("Dados de Pesquisa");
		mnNovo.add(mntmDadosDePesquisa);
		
		JMenuItem mntmAbrir = new JMenuItem("Abrir");
		mntmAbrir.setIcon(new ImageIcon("C:\\Users\\aruan\\Downloads\\imagens java\\empty11.png"));
		mnArquivo.add(mntmAbrir);
		
		JMenuItem mntmSalvar = new JMenuItem("Salvar");
		mntmSalvar.setIcon(new ImageIcon("C:\\Users\\aruan\\Downloads\\imagens java\\usb14.png"));
		mnArquivo.add(mntmSalvar);
		
		JMenuItem mntmSair = new JMenuItem("Sair");
		mntmSair.setIcon(new ImageIcon("C:\\Users\\aruan\\Downloads\\imagens java\\close18.png"));
		mnArquivo.add(mntmSair);
		
		JMenuItem mntmAruda = new JMenuItem("Ajuda");
		mntmAruda.setIcon(new ImageIcon("C:\\Users\\aruan\\Downloads\\imagens java\\question7.png"));
		menuBar.add(mntmAruda);
	}
}
